﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.PlatForm.Dtos.DbLink
{
    public class DbLinkActionsTestInput
    {
        /// <summary>
        /// 连接类型
        /// </summary>
        [Required(ErrorMessage = "连接类型不能为空")]
        public string dbType { get; set; }
        /// <summary>
        /// 主机
        /// </summary>
        [Required(ErrorMessage = "主机不能为空")]
        public string host { get; set; }
        /// <summary>
        /// 端口
        /// </summary>
        [Required(ErrorMessage = "端口不能为空")]
        public string port { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string password { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string userName { get; set; }
        /// <summary>
        /// 库名
        /// </summary>
        [Required(ErrorMessage = "库名不能为空")]
        public string serviceName { get; set; }
    }
}
